<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>登录验证</title>
		<script>
			function checkForm(f)
			{
				//验证用户名和密码必须填写
				//var u=document.getElementsByName("userName")[0];
				var u=f.userName;
				var p=f.userpass;
				if(u.value=="")
				{
					alert("用户名没有填写！");
					return false;
				}
				if(p.value=="")
				{
					alert("密码没有填写！");
					return false;
				}
			}
		</script>
	</head>
	<body>
		<h1>青鸟论坛用户登录</h1>
		<form action="http://i.bdqn.cn/reg-email" method="post" onsubmit="return checkForm(this)">
			<p>
				<label>用户名</label><input type="text" name="userName" />
			</p>
			<p>
				<label>密码</label><input type="password" name="userpass" />
			</p>
			<p>
				<input type="submit" value="登录"/>
			</p>
		</form>
	</body>
</html>
